package com.springboot.cloud.demos.feign.service;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.common.core.exception.SystemErrorType;
import com.springboot.cloud.demos.entity.form.UserForm;
import com.springboot.cloud.demos.entity.form.UserQueryForm;
import com.springboot.cloud.demos.entity.form.UserRequestEntity;
import com.springboot.cloud.demos.entity.param.FollowQueryParam;
import com.springboot.cloud.demos.entity.po.User;
import org.springframework.stereotype.Component;

@Component
public class UserServiceFallback implements UserService {
    @Override
    public Result save(UserForm userForm) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result<User> queryByMobile(String username) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result<User> getById(String id) {
        return null;
    }

    @Override
    public Result update(User existUser) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result getMyFollow(UserQueryForm queryParam) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result getFollowMe(UserQueryForm queryParam) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result nearBy(UserQueryForm queryParam) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result recommend(UserQueryForm queryParam) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result getStatistics(String id) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

}
